﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace WebApplication1.Classes
{
    class Flat
    {
        public Flat(int a, int b, string c, bool d, int e, double f, int g, int h)
        {
            this.certificate = a;
            this.idClient = b;
            this.adress = c;
            this.lostFloor = d;
            this.rooms = e;
            this.square = f;
            this.year = g;
            this.price = h;
        }
        private int certificate;
        private int idClient;
        private string adress;
        private bool lostFloor;
        private int rooms;
        private double square;
        private int year;
        private int price;

        public int Certificate
        {
            get { return certificate; }
            set { certificate = value; }
        }

        public int IdClient
        {
            get { return idClient; }
            set { idClient = value; }
        }
        public string Adress
        {
            get { return adress; }
            set { adress = value; }
        }
        public bool LostFloor
        {
            get { return lostFloor; }
            set { lostFloor = value; }
        }
        public int Rooms
        {
            get { return rooms; }
            set { rooms = value; }
        }
        public double Square
        {
            get { return square; }
            set { square = value; }
        }
        public int Year
        {
            get { return year; }
            set { year = value; }
        }
        public int Price
        {
            get { return price; }
            set { price = value; }
        }

    }
}
